home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_325 / fam / famgrep1.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  320b  |  23 lines

  1. /*
  2.  * FAMgrep1.c
  3.  * Sample Simple FAMgrep code.
  4.  * returns true if last char of name matches *p
  5.  */
  6.  
  7. #include "exec/types.h"
  8. #include "FAM.h"
  9. #include "string.h"
  10.  
  11. long MyGrepFunc(struct ScanListNode * node, char * p)
  12. {
  13.     char * q;
  14.  
  15.     q = node->node.ln_Name;
  16.     q = q + strlen(q) - 1;
  17.     return *q == *p;
  18.     }
  19.  
  20.  
  21.  
  22.  
  23.